/**
 * Company : TIS.
 * Created By : Chatree Siangklom
 * Created On : Aug 7, 2013  6:29:12 PM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : com.tis.database.services.impl
 * File Name : AGenCodeServiceImpl.java
 * TODO
 */
package com.tis.database.services;

import java.math.BigDecimal;
import java.util.List;

import org.hibernate.HibernateException;

import com.tis.database.entitys.AGenCode;

/**
 * @author chatree
 *
 */
public interface IAGenCodeDaoServices {
	
	AGenCode findById(BigDecimal id) throws HibernateException, Exception;
	
	AGenCode saveUpdate(AGenCode aGenCode) throws HibernateException, Exception;
	void saveUpdate(List<AGenCode> aGenCodeList) throws HibernateException, Exception;
	
	AGenCode save(AGenCode aGenCode) throws HibernateException, Exception;
	void save(List<AGenCode> aGenCodeList) throws HibernateException, Exception;
	
	void delete(AGenCode aGenCode) throws HibernateException, Exception;
	void delete(List<AGenCode> aGenCodeList) throws HibernateException, Exception;
	
	void remove(AGenCode aGenCode) throws HibernateException, Exception;
	void remove(List<AGenCode> aGenCodeList) throws HibernateException, Exception;

	List<AGenCode> findAGenCodesByCode(String code) throws HibernateException, Exception;
	List<AGenCode> findAGenCodesByName(String name) throws HibernateException, Exception;
	
	List<AGenCode> RefreshObject(List<AGenCode> aGenCodeList) throws HibernateException, Exception;
	
	List<AGenCode> findAllList() throws HibernateException, Exception;
}
